<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>乐谱天堂 - 高品质音乐乐谱商城</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            primary: '#165DFF',
            secondary: '#FF7D00',
            dark: '#1D2939',
            light: '#F9FAFB',
            neutral: '#667085'
          },
          fontFamily: {
            inter: ['Inter', 'system-ui', 'sans-serif'],
          },
        },
      }
    }
  </script>
  <style type="text/tailwindcss">
    @layer utilities {
      .content-auto {
        content-visibility: auto;
      }
      .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
      }
      .transition-custom {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .scrollbar-hide::-webkit-scrollbar {
        display: none;
      }
      .scrollbar-hide {
        -ms-overflow-style: none;
        scrollbar-width: none;
      }
    }
  </style>
</head>
<body class="font-inter bg-gray-50 text-dark antialiased">
  <!-- 导航栏 -->
  <header id="navbar" class="fixed w-full z-50 transition-all duration-300">
    <div class="bg-white/95 backdrop-blur-sm shadow-sm">
      <div class="container mx-auto px-4 sm:px-6 lg:px-8">
        <div class="flex justify-between items-center h-16">
          <!-- Logo -->
          <div class="flex items-center">
            <a href="#" class="flex items-center">
              <i class="fa fa-music text-primary text-2xl mr-2"></i>
              <span class="text-xl font-bold text-primary">乐谱天堂</span>
            </a>
          </div>
          
          <!-- 导航链接 - 桌面端 -->
          <nav class="hidden md:flex space-x-8">
            <a href="#" class="text-dark hover:text-primary font-medium transition-colors">首页</a>
            <a href="#categories" class="text-dark hover:text-primary font-medium transition-colors">乐谱分类</a>
            <a href="#featured" class="text-dark hover:text-primary font-medium transition-colors">热门推荐</a>
            <a href="#about" class="text-dark hover:text-primary font-medium transition-colors">关于我们</a>
          </nav>
          
          <!-- 右侧功能区 -->
          <div class="flex items-center space-x-4">
            <button id="searchBtn" class="p-2 rounded-full hover:bg-gray-100 transition-colors">
              <i class="fa fa-search text-neutral"></i>
            </button>
            <button id="cartBtn" class="p-2 rounded-full hover:bg-gray-100 transition-colors relative">
              <i class="fa fa-shopping-cart text-neutral"></i>
              <span class="absolute -top-1 -right-1 bg-secondary text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span>
            </button>
            <button id="userBtn" class="p-2 rounded-full hover:bg-gray-100 transition-colors">
              <i class="fa fa-user text-neutral"></i>
            </button>
            <button id="mobileMenuBtn" class="md:hidden p-2 rounded-full hover:bg-gray-100 transition-colors">
              <i class="fa fa-bars text-neutral"></i>
            </button>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 搜索框 -->
    <div id="searchBox" class="hidden bg-white border-t border-gray-200 py-4">
      <div class="container mx-auto px-4 sm:px-6 lg:px-8">
        <div class="relative">
          <input type="text" placeholder="搜索乐谱、乐器或作曲家..." class="w-full pl-10 pr-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary">
          <i class="fa fa-search absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"></i>
        </div>
      </div>
    </div>
    
    <!-- 移动端菜单 -->
    <div id="mobileMenu" class="hidden md:hidden bg-white border-t border-gray-200">
      <div class="container mx-auto px-4 py-3">
        <nav class="flex flex-col space-y-3">
          <a href="#" class="text-dark hover:text-primary font-medium py-2 transition-colors">首页</a>
          <a href="#categories" class="text-dark hover:text-primary font-medium py-2 transition-colors">乐谱分类</a>
          <a href="#featured" class="text-dark hover:text-primary font-medium py-2 transition-colors">热门推荐</a>
          <a href="#about" class="text-dark hover:text-primary font-medium py-2 transition-colors">关于我们</a>
        </nav>
      </div>
    </div>
  </header>

  <!-- 英雄区 -->
  <section class="pt-24 md:pt-32 pb-12 md:pb-20 bg-gradient-to-br from-primary/5 to-white">
    <div class="container mx-auto px-4 sm:px-6 lg:px-8">
      <div class="flex flex-col md:flex-row items-center">
        <div class="md:w-1/2 mb-8 md:mb-0">
          <h1 class="text-[clamp(2rem,5vw,3.5rem)] font-bold leading-tight text-dark">
            发现<span class="text-primary">音乐</span>的无限可能
          </h1>
          <p class="mt-4 text-lg text-neutral max-w-xl">
            探索超过 100,000 份高品质乐谱，从古典到流行，满足每位音乐爱好者的需求。
          </p>
          <div class="mt-8 flex flex-wrap gap-4">
            <a href="#featured" class="px-6 py-3 bg-primary text-white rounded-lg shadow-lg hover:shadow-xl hover:bg-primary/90 transition-custom flex items-center">
              <span>立即探索</span>
              <i class="fa fa-arrow-right ml-2"></i>
            </a>
            <a href="#categories" class="px-6 py-3 bg-white text-primary border border-primary rounded-lg hover:bg-gray-50 transition-custom flex items-center">
              <i class="fa fa-music mr-2"></i>
              <span>浏览分类</span>
            </a>
          </div>
          <div class="mt-8 flex items-center space-x-6">
            <div class="flex items-center">
              <div class="flex -space-x-2">
                <img src="https://picsum.photos/200/200?random=1" alt="用户头像" class="w-10 h-10 rounded-full border-2 border-white">
                <img src="https://picsum.photos/200/200?random=2" alt="用户头像" class="w-10 h-10 rounded-full border-2 border-white">
                <img src="https://picsum.photos/200/200?random=3" alt="用户头像" class="w-10 h-10 rounded-full border-2 border-white">
              </div>
              <span class="ml-2 text-sm text-neutral">10,000+ 活跃用户</span>
            </div>
            <div class="flex items-center">
              <div class="flex text-yellow-400">
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star-half-o"></i>
              </div>
              <span class="ml-2 text-sm text-neutral">4.8/5 评分</span>
            </div>
          </div>
        </div>
        <div class="md:w-1/2 relative">
          <div class="relative z-10 rounded-xl overflow-hidden shadow-2xl transform hover:scale-[1.02] transition-custom">
            <img src="https://picsum.photos/800/600?random=10" alt="精美的音乐乐谱展示" class="w-full h-auto">
            <div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent flex items-end">
              <div class="p-6">
                <span class="inline-block px-3 py-1 bg-secondary text-white text-sm font-medium rounded-full mb-3">畅销乐谱</span>
                <h3 class="text-white text-xl font-bold">贝多芬钢琴奏鸣曲集</h3>
                <p class="text-white/80 mt-1">完整的32首钢琴奏鸣曲</p>
              </div>
            </div>
          </div>
          <div class="absolute -bottom-6 -left-6 w-32 h-32 bg-primary/20 rounded-full blur-3xl -z-10"></div>
          <div class="absolute -top-6 -right-6 w-40 h-40 bg-secondary/20 rounded-full blur-3xl -z-10"></div>
        </div>
      </div>
    </div>
  </section>

  <!-- 服务特点 -->
  <section class="py-12 bg-white">
    <div class="container mx-auto px-4 sm:px-6 lg:px-8">
      <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
        <div class="bg-gray-50 p-6 rounded-xl hover:shadow-lg transition-custom">
          <div class="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4">
            <i class="fa fa-download text-primary text-xl"></i>
          </div>
          <h3 class="text-lg font-semibold mb-2">即时下载</h3>
          <p class="text-neutral">购买后立即下载高清PDF乐谱，支持多设备访问</p>
        </div>
        <div class="bg-gray-50 p-6 rounded-xl hover:shadow-lg transition-custom">
          <div class="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4">
            <i class="fa fa-music text-primary text-xl"></i>
          </div>
          <h3 class="text-lg font-semibold mb-2">海量曲库</h3>
          <p class="text-neutral">超过100,000份乐谱，涵盖所有乐器和音乐风格</p>
        </div>
        <div class="bg-gray-50 p-6 rounded-xl hover:shadow-lg transition-custom">
          <div class="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4">
            <i class="fa fa-certificate text-primary text-xl"></i>
          </div>
          <h3 class="text-lg font-semibold mb-2">正版保障</h3>
          <p class="text-neutral">所有乐谱均经版权认证，确保合法使用</p>
        </div>
      </div>
    </div>
  </section>

  <!-- 分类浏览 -->
  <section id="categories" class="py-16 bg-gray-50">
    <div class="container mx-auto px-4 sm:px-6 lg:px-8">
      <div class="text-center mb-12">
        <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-dark">浏览乐谱分类</h2>
        <p class="mt-4 text-neutral max-w-2xl mx-auto">根据你的乐器和音乐喜好，探索我们丰富的乐谱分类</p>
      </div>
      
      <div class="grid grid-cols-2 md:grid-cols-4 gap-6">
        <a href="#" class="group">
          <div class="bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-lg transition-custom h-full flex flex-col">
            <div class="relative overflow-hidden h-40">
              <img src="https://picsum.photos/400/300?random=20" alt="钢琴乐谱" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300">
              <div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"></div>
              <div class="absolute bottom-0 left-0 p-4">
                <h3 class="text-white font-semibold">钢琴乐谱</h3>
                <p class="text-white/80 text-sm">4,200+ 乐谱</p>
              </div>
            </div>
            <div class="flex-grow p-4">
              <p class="text-neutral text-sm">古典、流行、爵士等多种风格的钢琴谱</p>
            </div>
          </div>
        </a>
        
        <a href="#" class="group">
          <div class="bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-lg transition-custom h-full flex flex-col">
            <div class="relative overflow-hidden h-40">
              <img src="https://picsum.photos/400/300?random=21" alt="吉他乐谱" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300">
              <div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"></div>
              <div class="absolute bottom-0 left-0 p-4">
                <h3 class="text-white font-semibold">吉他乐谱</h3>
                <p class="text-white/80 text-sm">3,800+ 乐谱</p>
              </div>
            </div>
            <div class="flex-grow p-4">
              <p class="text-neutral text-sm">民谣、摇滚、古典吉他谱和和弦谱</p>
            </div>
          </div>
        </a>
        
        <a href="#" class="group">
          <div class="bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-lg transition-custom h-full flex flex-col">
            <div class="relative overflow-hidden h-40">
              <img src="https://picsum.photos/400/300?random=22" alt="小提琴乐谱" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300">
              <div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"></div>
              <div class="absolute bottom-0 left-0 p-4">
                <h3 class="text-white font-semibold">小提琴乐谱</h3>
                <p class="text-white/80 text-sm">2,500+ 乐谱</p>
              </div>
            </div>
            <div class="flex-grow p-4">
              <p class="text-neutral text-sm">协奏曲、奏鸣曲和独奏曲乐谱</p>
            </div>
          </div>
        </a>
        
        <a href="#" class="group">
          <div class="bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-lg transition-custom h-full flex flex-col">
            <div class="relative overflow-hidden h-40">
              <img src="https://picsum.photos/400/300?random=23" alt="管弦乐乐谱" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300">
              <div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"></div>
              <div class="absolute bottom-0 left-0 p-4">
                <h3 class="text-white font-semibold">管弦乐乐谱</h3>
                <p class="text-white/80 text-sm">1,800+ 乐谱</p>
              </div>
            </div>
            <div class="flex-grow p-4">
              <p class="text-neutral text-sm">交响曲、协奏曲和室内乐乐谱</p>
            </div>
          </div>
        </a>
      </div>
      
      <div class="mt-10 text-center">
        <a href="#" class="inline-flex items-center text-primary font-medium hover:underline">
          查看全部分类
          <i class="fa fa-arrow-right ml-2"></i>
        </a>
      </div>
    </div>
  </section>

  <!-- 热门推荐 -->
  <section id="featured" class="py-16 bg-white">
    <div class="container mx-auto px-4 sm:px-6 lg:px-8">
      <div class="flex flex-col md:flex-row md:items-end justify-between mb-12">
        <div>
          <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-dark">热门推荐</h2>
          <p class="mt-4 text-neutral max-w-2xl">本月最受欢迎的乐谱，由我们的用户和专业音乐家精选</p>
        </div>
        <div class="mt-4 md:mt-0 flex space-x-2">
          <button id="prevSlide" class="w-10 h-10 rounded-full border border-gray-300 flex items-center justify-center hover:bg-gray-50 transition-colors">
            <i class="fa fa-chevron-left text-neutral"></i>
          </button>
          <button id="nextSlide" class="w-10 h-10 rounded-full border border-gray-300 flex items-center justify-center hover:bg-gray-50 transition-colors">
            <i class="fa fa-chevron-right text-neutral"></i>
          </button>
        </div>
      </div>
      
      <div class="relative">
        <div id="featuredSlider" class="flex overflow-x-auto scrollbar-hide snap-x snap-mandatory pb-6 gap-6">
          <!-- 乐谱卡片 1 -->
          <div class="min-w-[280px] sm:min-w-[300px] bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-lg transition-custom snap-start group">
            <div class="relative">
              <img src="https://picsum.photos/400/300?random=30" alt="肖邦夜曲全集" class="w-full h-48 object-cover group-hover:scale-105 transition-transform duration-300">
              <div class="absolute top-3 right-3">
                <span class="inline-block px-2 py-1 bg-secondary text-white text-xs font-medium rounded-full">畅销</span>
              </div>
            </div>
            <div class="p-4">
              <div class="flex justify-between items-start mb-2">
                <h3 class="font-semibold text-dark group-hover:text-primary transition-colors">肖邦夜曲全集</h3>
                <span class="font-bold text-primary">¥128</span>
              </div>
              <p class="text-sm text-neutral mb-3">钢琴 • 古典</p>
              <div class="flex justify-between items-center">
                <div class="flex items-center">
                  <div class="flex text-yellow-400 text-xs">
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                  </div>
                  <span class="ml-1 text-xs text-neutral">(124)</span>
                </div>
                <button class="p-2 bg-primary/10 text-primary rounded-full hover:bg-primary hover:text-white transition-colors">
                  <i class="fa fa-shopping-cart"></i>
                </button>
              </div>
            </div>
          </div>
          
          <!-- 乐谱卡片 2 -->
          <div class="min-w-[280px] sm:min-w-[300px] bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-lg transition-custom snap-start group">
            <div class="relative">
              <img src="https://picsum.photos/400/300?random=31" alt="流行钢琴精选集" class="w-full h-48 object-cover group-hover:scale-105 transition-transform duration-300">
              <div class="absolute top-3 right-3">
                <span class="inline-block px-2 py-1 bg-green-500 text-white text-xs font-medium rounded-full">新品</span>
              </div>
            </div>
            <div class="p-4">
              <div class="flex justify-between items-start mb-2">
                <h3 class="font-semibold text-dark group-hover:text-primary transition-colors">流行钢琴精选集</h3>
                <span class="font-bold text-primary">¥89</span>
              </div>
              <p class="text-sm text-neutral mb-3">钢琴 • 流行</p>
              <div class="flex justify-between items-center">
                <div class="flex items-center">
                  <div class="flex text-yellow-400 text-xs">
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star-half-o"></i>
                  </div>
                  <span class="ml-1 text-xs text-neutral">(98)</span>
                </div>
                <button class="p-2 bg-primary/10 text-primary rounded-full hover:bg-primary hover:text-white transition-colors">
                  <i class="fa fa-shopping-cart"></i>
                </button>
              </div>
            </div>
          </div>
          
          <!-- 乐谱卡片 3 -->
          <div class="min-w-[280px] sm:min-w-[300px] bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-lg transition-custom snap-start group">
            <div class="relative">
              <img src="https://picsum.photos/400/300?random=32" alt="小提琴协奏曲精选" class="w-full h-48 object-cover group-hover:scale-105 transition-transform duration-300">
            </div>
            <div class="p-4">
              <div class="flex justify-between items-start mb-2">
                <h3 class="font-semibold text-dark group-hover:text-primary transition-colors">小提琴协奏曲精选</h3>
                <span class="font-bold text-primary">¥159</span>
              </div>
              <p class="text-sm text-neutral mb-3">小提琴 • 古典</p>
              <div class="flex justify-between items-center">
                <div class="flex items-center">
                  <div class="flex text-yellow-400 text-xs">
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star-o"></i>
                  </div>
                  <span class="ml-1 text-xs text-neutral">(76)</span>
                </div>
                <button class="p-2 bg-primary/10 text-primary rounded-full hover:bg-primary hover:text-white transition-colors">
                  <i class="fa fa-shopping-cart"></i>
                </button>
              </div>
            </div>
          </div>
          
          <!-- 乐谱卡片 4 -->
          <div class="min-w-[280px] sm:min-w-[300px] bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-lg transition-custom snap-start group">
            <div class="relative">
              <img src="https://picsum.photos/400/300?random=33" alt="吉他弹唱流行金曲" class="w-full h-48 object-cover group-hover:scale-105 transition-transform duration-300">
              <div class="absolute top-3 right-3">
                <span class="inline-block px-2 py-1 bg-red-500 text-white text-xs font-medium rounded-full">折扣</span>
              </div>
            </div>
            <div class="p-4">
              <div class="flex justify-between items-start mb-2">
                <h3 class="font-semibold text-dark group-hover:text-primary transition-colors">吉他弹唱流行金曲</h3>
                <div>
                  <span class="font-bold text-primary">¥69</span>
                  <span class="text-sm text-neutral line-through ml-1">¥99</span>
                </div>
              </div>
              <p class="text-sm text-neutral mb-3">吉他 • 流行</p>
              <div class="flex justify-between items-center">
                <div class="flex items-center">
                  <div class="flex text-yellow-400 text-xs">
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                  </div>
                  <span class="ml-1 text-xs text-neutral">(156)</span>
                </div>
                <button class="p-2 bg-primary/10 text-primary rounded-full hover:bg-primary hover:text-white transition-colors">
                  <i class="fa fa-shopping-cart"></i>
                </button>
              </div>
            </div>
          </div>
          
          <!-- 乐谱卡片 5 -->
          <div class="min-w-[280px] sm:min-w-[300px] bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-lg transition-custom snap-start group">
            <div class="relative">
              <img src="https://picsum.photos/400/300?random=34" alt="巴赫平均律钢琴曲集" class="w-full h-48 object-cover group-hover:scale-105 transition-transform duration-300">
            </div>
            <div class="p-4">
              <div class="flex justify-between items-start mb-2">
                <h3 class="font-semibold text-dark group-hover:text-primary transition-colors">巴赫平均律钢琴曲集</h3>
                <span class="font-bold text-primary">¥139</span>
              </div>
              <p class="text-sm text-neutral mb-3">钢琴 • 古典</p>
              <div class="flex justify-between items-center">
                <div class="flex items-center">
                  <div class="flex text-yellow-400 text-xs">
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star"></i>
                    <i class="fa fa-star-half-o"></i>
                  </div>
                  <span class="ml-1 text-xs text-neutral">(112)</span>
                </div>
                <button class="p-2 bg-primary/10 text-primary rounded-full hover:bg-primary hover:text-white transition-colors">
                  <i class="fa fa-shopping-cart"></i>
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>

  <!-- 促销活动 -->
  <section class="py-16 bg-gradient-to-r from-primary to-primary/80 text-white">
    <div class="container mx-auto px-4 sm:px-6 lg:px-8">
      <div class="flex flex-col md:flex-row items-center">
        <div class="md:w-1/2 mb-8 md:mb-0">
          <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold">夏季促销活动</h2>
          <p class="mt-4 text-white/90 max-w-lg">
            限时优惠，全场乐谱8折起！购买任意3份乐谱，即可免费获得一份精选乐谱。活动期限：6月20日-7月20日。
          </p>
          <div class="mt-8 flex space-x-4">
            <div class="bg-white/20 backdrop-blur-sm rounded-lg p-4 text-center">
              <div class="text-2xl font-bold" id="days">05</div>
              <div class="text-sm text-white/80">天</div>
            </div>
            <div class="bg-white/20 backdrop-blur-sm rounded-lg p-4 text-center">
              <div class="text-2xl font-bold" id="hours">12</div>
              <div class="text-sm text-white/80">时</div>
            </div>
            <div class="bg-white/20 backdrop-blur-sm rounded-lg p-4 text-center">
              <div class="text-2xl font-bold" id="minutes">34</div>
              <div class="text-sm text-white/80">分</div>
            </div>
            <div class="bg-white/20 backdrop-blur-sm rounded-lg p-4 text-center">
              <div class="text-2xl font-bold" id="seconds">56</div>
              <div class="text-sm text-white/80">秒</div>
            </div>
          </div>
          <a href="#" class="mt-8 inline-block px-6 py-3 bg-white text-primary rounded-lg font-medium hover:bg-gray-100 transition-colors">
            立即抢购
          </a>
        </div>
        <div class="md:w-1/2 relative">
          <div class="relative z-10 rounded-xl overflow-hidden shadow-2xl transform hover:scale-[1.02] transition-custom">
            <img src="https://picsum.photos/800/600?random=40" alt="促销活动展示" class="w-full h-auto">
            <div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent flex items-end">
              <div class="p-6">
                <span class="inline-block px-3 py-1 bg-secondary text-white text-sm font-medium rounded-full mb-3">限时优惠</span>
                <h3 class="text-white text-xl font-bold">贝多芬钢琴协奏曲全集</h3>
                <p class="text-white/80 mt-1">原价 ¥399，现价仅需 ¥299！</p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>

  <!-- 用户评价 -->
  <section class="py-16 bg-gray-50">
    <div class="container mx-auto px-4 sm:px-6 lg:px-8">
      <div class="text-center mb-12">
        <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-dark">用户评价</h2>
        <p class="mt-4 text-neutral max-w-2xl mx-auto">听听我们的用户如何评价乐谱天堂的服务和产品</p>
      </div>
      
      <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
        <div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition-custom">
          <div class="flex text-yellow-400 mb-4">
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
          </div>
          <p class="text-neutral mb-6">
            "作为一名钢琴教师，我一直在寻找高质量的乐谱资源。乐谱天堂提供的肖邦夜曲全集非常棒，打印清晰，注释详尽，对我的教学帮助很大。"
          </p>
          <div class="flex items-center">
            <img src="https://picsum.photos/200/200?random=50" alt="用户头像" class="w-12 h-12 rounded-full mr-4">
            <div>
              <h4 class="font-medium">李老师</h4>
              <p class="text-sm text-neutral">钢琴教师 • 北京</p>
            </div>
          </div>
        </div>
        
        <div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition-custom">
          <div class="flex text-yellow-400 mb-4">
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
          </div>
          <p class="text-neutral mb-6">
            "我是一名业余小提琴爱好者，在这里找到了很多经典曲目。下载速度快，客服响应及时，非常满意。夏季促销活动让我以很实惠的价格购买了多份乐谱。"
          </p>
          <div class="flex items-center">
            <img src="https://picsum.photos/200/200?random=51" alt="用户头像" class="w-12 h-12 rounded-full mr-4">
            <div>
              <h4 class="font-medium">张小明</h4>
              <p class="text-sm text-neutral">小提琴爱好者 • 上海</p>
            </div>
          </div>
        </div>
        
        <div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition-custom">
          <div class="flex text-yellow-400 mb-4">
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star-half-o"></i>
          </div>
          <p class="text-neutral mb-6">
            "网站界面简洁易用，搜索功能强大。我能够快速找到想要的吉他谱，并且有多种格式可供选择。唯一的小缺点是某些偏门曲目的选择有限。"
          </p>
          <div class="flex items-center">
            <img src="https://picsum.photos/200/200?random=52" alt="用户头像" class="w-12 h-12 rounded-full mr-4">
            <div>
              <h4 class="font-medium">王大卫</h4>
              <p class="text-sm text-neutral">吉他手 • 广州</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>

  <!-- 关于我们 -->
  <section id="about" class="py-16 bg-white">
    <div class="container mx-auto px-4 sm:px-6 lg:px-8">
      <div class="flex flex-col md:flex-row items-center">
        <div class="md:w-1/2 mb-8 md:mb-0">
          <img src="https://picsum.photos/800/600?random=60" alt="关于乐谱天堂" class="w-full h-auto rounded-xl shadow-lg">
        </div>
        <div class="md:w-1/2 md:pl-12">
          <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-dark">关于乐谱天堂</h2>
          <p class="mt-4 text-neutral">
            乐谱天堂成立于2018年，是中国领先的数字乐谱销售平台。我们致力于为音乐爱好者、学生和专业音乐家提供高质量、正版授权的乐谱资源。
          </p>
          <div class="mt-6 space-y-4">
            <div class="flex items-start">
              <div class="mt-1 mr-4 text-primary">
                <i class="fa fa-check-circle text-xl"></i>
              </div>
              <div>
                <h4 class="font-medium">正版保障</h4>
                <p class="text-sm text-neutral mt-1">所有乐谱均获得版权方授权，确保合法使用</p>
              </div>
            </div>
            <div class="flex items-start">
              <div class="mt-1 mr-4 text-primary">
                <i class="fa fa-check-circle text-xl"></i>
              </div>
              <div>
                <h4 class="font-medium">高清PDF格式</h4>
                <p class="text-sm text-neutral mt-1">提供高质量PDF文件，支持打印和多设备阅读</p>
              </div>
            </div>
            <div class="flex items-start">
              <div class="mt-1 mr-4 text-primary">
                <i class="fa fa-check-circle text-xl"></i>
              </div>
              <div>
                <h4 class="font-medium">专业编辑团队</h4>
                <p class="text-sm text-neutral mt-1">由专业音乐家组成的编辑团队，确保乐谱准确性</p>
              </div>
            </div>
          </div>
          <div class="mt-8">
            <a href="#" class="inline-block px-6 py-3 bg-primary text-white rounded-lg font-medium hover:bg-primary/90 transition-colors">
              了解更多
            </a>
          </div>
        </div>
      </div>
    </div>
  </section>

  <!-- 订阅区域 -->
  <section class="py-16 bg-gray-50">
    <div class="container mx-auto px-4 sm:px-6 lg:px-8">
      <div class="bg-white rounded-2xl shadow-xl overflow-hidden">
        <div class="flex flex-col md:flex-row">
          <div class="md:w-1/2 p-8 md:p-12 bg-gradient-to-br from-primary to-primary/80 text-white">
            <h2 class="text-2xl md:text-3xl font-bold">订阅我们的新闻通讯</h2>
            <p class="mt-4 text-white/90">
              获取最新乐谱资讯、独家优惠和音乐学习资源，直接发送到您的邮箱。
            </p>
            <form class="mt-6">
              <div class="flex flex-col sm:flex-row gap-3">
                <input type="email" placeholder="您的邮箱地址" class="flex-grow px-4 py-3 rounded-lg focus:outline-none focus:ring-2 focus:ring-white/50">
                <button type="submit" class="px-6 py-3 bg-white text-primary font-medium rounded-lg hover:bg-gray-100 transition-colors">
                  订阅
                </button>
              </div>
            </form>
            <p class="mt-4 text-sm text-white/80">
              我们尊重您的隐私，不会向第三方分享您的信息。
            </p>
          </div>
          <div class="md:w-1/2 relative">
            <img src="https://picsum.photos/800/600?random=70" alt="订阅我们" class="w-full h-full object-cover">
            <div class="absolute inset-0 bg-gradient-to-r from-black/40 to-transparent"></div>
          </div>
        </div>
      </div>
    </div>
  </section>

  <!-- 页脚 -->
  <footer class="bg-dark text-white pt-16 pb-8">
    <div class="container mx-auto px-4 sm:px-6 lg:px-8">
      <div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-12">
        <div>
          <div class="flex items-center mb-4">
            <i class="fa fa-music text-primary text-2xl mr-2"></i>
            <span class="text-xl font-bold">乐谱天堂</span>
          </div>
          <p class="text-gray-400 mb-4">
            高品质数字乐谱销售平台，为音乐爱好者提供正版乐谱资源。
          </p>
          <div class="flex space-x-4">
            <a href="#" class="text-gray-400 hover:text-white transition-colors">
              <i class="fa fa-weibo"></i>
            </a>
            <a href="#" class="text-gray-400 hover:text-white transition-colors">
              <i class="fa fa-wechat"></i>
            </a>
            <a href="#" class="text-gray-400 hover:text-white transition-colors">
              <i class="fa fa-instagram"></i>
            </a>
            <a href="#" class="text-gray-400 hover:text-white transition-colors">
              <i class="fa fa-youtube-play"></i>
            </a>
          </div>
        </div>
        
        <div>
          <h4 class="text-lg font-semibold mb-4">快速链接</h4>
          <ul class="space-y-2">
            <li><a href="#" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
            <li><a href="#categories" class="text-gray-400 hover:text-white transition-colors">乐谱分类</a></li>
            <li><a href="#featured" class="text-gray-400 hover:text-white transition-colors">热门推荐</a></li>
            <li><a href="#about" class="text-gray-400 hover:text-white transition-colors">关于我们</a></li>
            <li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li>
          </ul>
        </div>
        
        <div>
          <h4 class="text-lg font-semibold mb-4">帮助中心</h4>
          <ul class="space-y-2">
            <li><a href="#" class="text-gray-400 hover:text-white transition-colors">常见问题</a></li>
            <li><a href="#" class="text-gray-400 hover:text-white transition-colors">下载说明</a></li>
            <li><a href="#" class="text-gray-400 hover:text-white transition-colors">购买指南</a></li>
            <li><a href="#" class="text-gray-400 hover:text-white transition-colors">退款政策</a></li>
            <li><a href="#" class="text-gray-400 hover:text-white transition-colors">用户协议</a></li>
          </ul>
        </div>
        
        <div>
          <h4 class="text-lg font-semibold mb-4">联系我们</h4>
          <ul class="space-y-2">
            <li class="flex items-start">
              <i class="fa fa-map-marker text-primary mt-1 mr-3"></i>
              <span class="text-gray-400">北京市朝阳区音乐大厦15层</span>
            </li>
            <li class="flex items-center">
              <i class="fa fa-phone text-primary mr-3"></i>
              <span class="text-gray-400">400-123-4567</span>
            </li>
            <li class="flex items-center">
              <i class="fa fa-envelope text-primary mr-3"></i>
              <span class="text-gray-400">contact@yuepu.com</span>
            </li>
            <li class="flex items-center">
              <i class="fa fa-clock-o text-primary mr-3"></i>
              <span class="text-gray-400">周一至周日 9:00-21:00</span>
            </li>
          </ul>
        </div>
      </div>
      
      <div class="border-t border-gray-800 pt-8">
        <div class="flex flex-col md:flex-row justify-between items-center">
          <p class="text-gray-500 text-sm">
            &copy; 2025 乐谱天堂. 保留所有权利.
          </p>
          <div class="mt-4 md:mt-0">
            <img src="https://picsum.photos/400/100?random=80" alt="支付方式" class="h-8">
          </div>
        </div>
      </div>
    </div>
  </footer>

  <!-- 登录/注册模态框 -->
  <div id="authModal" class="fixed inset-0 z-50 flex items-center justify-center hidden">
    <div class="absolute inset-0 bg-black/50 backdrop-blur-sm"></div>
    <div class="relative bg-white rounded-xl shadow-2xl w-full max-w-md mx-4 transform transition-all">
      <div class="flex justify-end p-4">
        <button id="closeAuthModal" class="p-2 rounded-full hover:bg-gray-100 transition-colors">
          <i class="fa fa-times text-neutral"></i>
        </button>
      </div>
      
      <div class="p-6">
        <!-- 标签页切换 -->
        <div class="flex border-b">
          <button id="loginTab" class="flex-1 py-3 text-lg font-medium text-primary border-b-2 border-primary">登录</button>
          <button id="registerTab" class="flex-1 py-3 text-lg font-medium text-neutral hover:text-dark transition-colors">注册</button>
        </div>
        
        <!-- 登录表单 -->
        <div id="loginForm" class="py-6">
          <h3 class="text-2xl font-bold mb-6">欢迎回来</h3>
          <form>
            <div class="mb-4">
              <label for="loginEmail" class="block text-sm font-medium text-gray-700 mb-1">邮箱</label>
              <input type="email" id="loginEmail" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary" placeholder="请输入您的邮箱">
            </div>
            <div class="mb-6">
              <label for="loginPassword" class="block text-sm font-medium text-gray-700 mb-1">密码</label>
              <input type="password" id="loginPassword" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary" placeholder="请输入您的密码">
              <div class="flex justify-end mt-2">
                <a href="#" class="text-sm text-primary hover:underline">忘记密码？</a>
              </div>
            </div>
            <button type="submit" class="w-full py-3 bg-primary text-white rounded-lg font-medium hover:bg-primary/90 transition-colors">登录</button>
            <div class="mt-4 text-center">
              <span class="text-sm text-neutral">还没有账号？</span>
              <button type="button" id="switchToRegister" class="text-sm text-primary font-medium hover:underline">立即注册</button>
            </div>
          </form>
        </div>
        
        <!-- 注册表单 -->
        <div id="registerForm" class="py-6 hidden">
          <h3 class="text-2xl font-bold mb-6">创建账户</h3>
          <form>
            <div class="mb-4">
              <label for="registerName" class="block text-sm font-medium text-gray-700 mb-1">姓名</label>
              <input type="text" id="registerName" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary" placeholder="请输入您的姓名">
            </div>
            <div class="mb-4">
              <label for="registerEmail" class="block text-sm font-medium text-gray-700 mb-1">邮箱</label>
              <input type="email" id="registerEmail" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary" placeholder="请输入您的邮箱">
            </div>
            <div class="mb-4">
              <label for="registerPassword" class="block text-sm font-medium text-gray-700 mb-1">密码</label>
              <input type="password" id="registerPassword" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary" placeholder="请设置密码">
            </div>
            <div class="mb-6">
              <label for="registerConfirmPassword" class="block text-sm font-medium text-gray-700 mb-1">确认密码</label>
              <input type="password" id="registerConfirmPassword" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary" placeholder="请再次输入密码">
            </div>
            <div class="mb-6">
              <label class="flex items-start">
                <input type="checkbox" class="mt-1 mr-2">
                <span class="text-sm text-neutral">我已阅读并同意<a href="#" class="text-primary hover:underline">用户协议</a>和<a href="#" class="text-primary hover:underline">隐私政策</a></span>
              </label>
            </div>
            <button type="submit" class="w-full py-3 bg-primary text-white rounded-lg font-medium hover:bg-primary/90 transition-colors">注册</button>
            <div class="mt-4 text-center">
              <span class="text-sm text-neutral">已有账号？</span>
              <button type="button" id="switchToLogin" class="text-sm text-primary font-medium hover:underline">立即登录</button>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>

  <!-- 购物车模态框 -->
  <div id="cartModal" class="fixed inset-0 z-50 flex items-center justify-center hidden">
    <div class="absolute inset-0 bg-black/50 backdrop-blur-sm"></div>
    <div class="relative bg-white rounded-xl shadow-2xl w-full max-w-3xl mx-4 h-[90vh] flex flex-col transform transition-all">
      <div class="flex justify-between items-center p-6 border-b">
        <h3 class="text-xl font-bold">我的购物车</h3>
        <button id="closeCartModal" class="p-2 rounded-full hover:bg-gray-100 transition-colors">
          <i class="fa fa-times text-neutral"></i>
        </button>
      </div>
      
      <div class="flex-grow overflow-y-auto p-6">
        <!-- 购物车为空状态 -->
        <div id="emptyCart" class="flex flex-col items-center justify-center py-12">
          <div class="w-24 h-24 bg-gray-100 rounded-full flex items-center justify-center mb-4">
            <i class="fa fa-shopping-cart text-3xl text-gray-400"></i>
          </div>
          <h4 class="text-lg font-medium text-gray-700 mb-2">购物车是空的</h4>
          <p class="text-neutral mb-6">浏览我们的乐谱，找到您喜欢的商品</p>
          <a href="#featured" class="px-6 py-3 bg-primary text-white rounded-lg font-medium hover:bg-primary/90 transition-colors">
            开始购物
          </a>
        </div>
        
        <!-- 购物车有商品状态 -->
        <div id="cartItems" class="hidden">
          <!-- 购物车商品项 -->
          <div class="flex items-center py-4 border-b">
            <img src="https://picsum.photos/400/300?random=30" alt="肖邦夜曲全集" class="w-20 h-20 object-cover rounded-lg mr-4">
            <div class="flex-grow">
              <h4 class="font-medium">肖邦夜曲全集</h4>
              <p class="text-sm text-neutral">钢琴 • 古典</p>
            </div>
            <div class="flex flex-col items-end">
              <div class="font-medium">¥128</div>
              <button class="mt-2 text-sm text-red-500 hover:underline">移除</button>
            </div>
          </div>
          
          <div class="flex items-center py-4 border-b">
            <img src="https://picsum.photos/400/300?random=33" alt="吉他弹唱流行金曲" class="w-20 h-20 object-cover rounded-lg mr-4">
            <div class="flex-grow">
              <h4 class="font-medium">吉他弹唱流行金曲</h4>
              <p class="text-sm text-neutral">吉他 • 流行</p>
            </div>
            <div class="flex flex-col items-end">
              <div class="font-medium">¥69</div>
              <button class="mt-2 text-sm text-red-500 hover:underline">移除</button>
            </div>
          </div>
          
          <div class="flex items-center py-4 border-b">
            <img src="https://picsum.photos/400/300?random=31" alt="流行钢琴精选集" class="w-20 h-20 object-cover rounded-lg mr-4">
            <div class="flex-grow">
              <h4 class="font-medium">流行钢琴精选集</h4>
              <p class="text-sm text-neutral">钢琴 • 流行</p>
            </div>
            <div class="flex flex-col items-end">
              <div class="font-medium">¥89</div>
              <button class="mt-2 text-sm text-red-500 hover:underline">移除</button>
            </div>
          </div>
        </div>
      </div>
      
      <div class="p-6 border-t">
        <div id="cartSummary" class="hidden">
          <div class="flex justify-between mb-4">
            <span class="text-neutral">小计</span>
            <span class="font-medium">¥286</span>
          </div>
          <div class="flex justify-between mb-6">
            <span class="text-neutral">优惠</span>
            <span class="font-medium text-red-500">-¥20</span>
          </div>
          <div class="flex justify-between mb-6">
            <span class="font-medium">总计</span>
            <span class="font-bold text-lg">¥266</span>
          </div>
          <button class="w-full py-3 bg-primary text-white rounded-lg font-medium hover:bg-primary/90 transition-colors">
            结算
          </button>
        </div>
      </div>
    </div>
  </div>

  <script>
    // 导航栏滚动效果
    const navbar = document.getElementById('navbar');
    window.addEventListener('scroll', () => {
      if (window.scrollY > 100) {
        navbar.classList.add('shadow-md');
      } else {
        navbar.classList.remove('shadow-md');
      }
    });
    
    // 移动端菜单切换
    const mobileMenuBtn = document.getElementById('mobileMenuBtn');
    const mobileMenu = document.getElementById('mobileMenu');
    mobileMenuBtn.addEventListener('click', () => {
      mobileMenu.classList.toggle('hidden');
    });
    
    // 搜索框切换
    const searchBtn = document.getElementById('searchBtn');
    const searchBox = document.getElementById('searchBox');
    searchBtn.addEventListener('click', () => {
      searchBox.classList.toggle('hidden');
      mobileMenu.classList.add('hidden');
    });
    
    // 登录/注册模态框
    const userBtn = document.getElementById('userBtn');
    const authModal = document.getElementById('authModal');
    const closeAuthModal = document.getElementById('closeAuthModal');
    const loginTab = document.getElementById('loginTab');
    const registerTab = document.getElementById('registerTab');
    const loginForm = document.getElementById('loginForm');
    const registerForm = document.getElementById('registerForm');
    const switchToRegister = document.getElementById('switchToRegister');
    const switchToLogin = document.getElementById('switchToLogin');
    
    userBtn.addEventListener('click', () => {
      authModal.classList.remove('hidden');
      document.body.style.overflow = 'hidden';
    });
    
    closeAuthModal.addEventListener('click', () => {
      authModal.classList.add('hidden');
      document.body.style.overflow = '';
    });
    
    loginTab.addEventListener('click', () => {
      loginTab.classList.add('text-primary', 'border-b-2', 'border-primary');
      loginTab.classList.remove('text-neutral');
      registerTab.classList.remove('text-primary', 'border-b-2', 'border-primary');
      registerTab.classList.add('text-neutral');
      loginForm.classList.remove('hidden');
      registerForm.classList.add('hidden');
    });
    
    registerTab.addEventListener('click', () => {
      registerTab.classList.add('text-primary', 'border-b-2', 'border-primary');
      registerTab.classList.remove('text-neutral');
      loginTab.classList.remove('text-primary', 'border-b-2', 'border-primary');
      loginTab.classList.add('text-neutral');
      registerForm.classList.remove('hidden');
      loginForm.classList.add('hidden');
    });
    
    switchToRegister.addEventListener('click', () => {
      registerTab.click();
    });
    
    switchToLogin.addEventListener('click', () => {
      loginTab.click();
    });
    
    // 购物车模态框
    const cartBtn = document.getElementById('cartBtn');
    const cartModal = document.getElementById('cartModal');
    const closeCartModal = document.getElementById('closeCartModal');
    const emptyCart = document.getElementById('emptyCart');
    const cartItems = document.getElementById('cartItems');
    const cartSummary = document.getElementById('cartSummary');
    
    cartBtn.addEventListener('click', () => {
      cartModal.classList.remove('hidden');
      document.body.style.overflow = 'hidden';
      
      // 模拟购物车有商品
      emptyCart.classList.add('hidden');
      cartItems.classList.remove('hidden');
      cartSummary.classList.remove('hidden');
    });
    
    closeCartModal.addEventListener('click', () => {
      cartModal.classList.add('hidden');
      document.body.style.overflow = '';
    });
    
    // 热门推荐滑块
    const slider = document.getElementById('featuredSlider');
    const prevBtn = document.getElementById('prevSlide');
    const nextBtn = document.getElementById('nextSlide');
    
    prevBtn.addEventListener('click', () => {
      slider.scrollBy({ left: -300, behavior: 'smooth' });
    });
    
    nextBtn.addEventListener('click', () => {
      slider.scrollBy({ left: 300, behavior: 'smooth' });
    });
    
    // 倒计时功能
    function updateCountdown() {
      const endDate = new Date('2025-07-20T23:59:59').getTime();
      const now = new Date().getTime();
      const distance = endDate - now;
      
      const days = Math.floor(distance / (1000 * 60 * 60 * 24));
      const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
      const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
      const seconds = Math.floor((distance % (1000 * 60)) / 1000);
      
      document.getElementById('days').innerText = days.toString().padStart(2, '0');
      document.getElementById('hours').innerText = hours.toString().padStart(2, '0');
      document.getElementById('minutes').innerText = minutes.toString().padStart(2, '0');
      document.getElementById('seconds').innerText = seconds.toString().padStart(2, '0');
    }
    
    // 初始化倒计时
    updateCountdown();
    setInterval(updateCountdown, 1000);
    
    // 平滑滚动
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
      anchor.addEventListener('click', function (e) {
        e.preventDefault();
        
        const targetId = this.getAttribute('href');
        if (targetId === '#') return;
        
        const targetElement = document.querySelector(targetId);
        if (targetElement) {
          window.scrollTo({
            top: targetElement.offsetTop - 80,
            behavior: 'smooth'
          });
          
          // 关闭移动菜单
          mobileMenu.classList.add('hidden');
        }
      });
    });
  </script>
</body>
</html>
    
<!-- 用 Vue3 + Element Plus 重构建议：
1. 建议将此页面拆分为多个 .vue 组件（如导航栏、英雄区、分类区、推荐区、促销区、评价区、关于我们、订阅、页脚、登录注册模态、购物车模态等），每个组件单独管理。
2. 页面主入口建议新建 temp.vue 文件，使用 <template>、<script setup>、<style scoped> 结构。
3. 使用 <el-container>、<el-header>、<el-main>、<el-footer> 等 Element Plus 布局组件。
4. 所有按钮、输入框、弹窗、轮播、倒计时等交互建议用 Element Plus 组件（如 el-button、el-input、el-dialog、el-carousel、el-tabs、el-form 等）。
5. 样式建议用 Element Plus + Tailwind（如需），避免直接写原生 class。
6. 交互逻辑（如倒计时、模态框切换、购物车等）全部迁移到 <script setup> 中，使用 ref、reactive、computed、watch、onMounted 等组合式 API。
7. 静态数据建议先写在 setup 内部，后续可用 props 或 pinia/vuex 管理。
8. 所有图片、icon 建议用 el-image、el-icon 或 svg 组件化。
9. 参考 element-plus 文档：https://element-plus.org/zh-CN/component/overview.html

如需具体代码示例或某个区块的 Vue3 + Element Plus 写法，请指定具体区块。-->
</html
    